<template>
  <div>
    <div class="bg">
      <img
        class="My_bg__2j-VX"
        src="http://liufusong.top:8080/img/profile/bg.png"
        alt="背景图"
      />
      <div class="weizhi">
        <div class="big">
          <div class="small">
            <img
              class="My_avatar__2Fbh7"
              src="http://liufusong.top:8080/img/profile/avatar.png"
              alt="icon"
            />
          </div>
          <p>游客</p>
          <van-button type="primary" @click.native="$router.push('/login')">去登录</van-button>
        </div>
      </div>
    </div>
    <!-- 中间六个盒子 -->
    <van-grid :column-num="3">
      <van-grid-item icon="star-o" text="我的收藏"/>
      <van-grid-item icon="wap-home-o" text="我的出租"/>
      <van-grid-item icon="clock-o" text="看房记录"/>
      <van-grid-item icon="vip-card-o" text="成为房主"/>
      <van-grid-item icon="user-circle-o" text="个人资料"/>
      <van-grid-item icon="service-o" text="联系我们"/>
    </van-grid>
    <div class="img">
      <img src="http://liufusong.top:8080/img/profile/join.png" alt="">
    </div>
  </div>
</template>

<script>
export default {
  name: 'wode-page',
  data() {
    return {}
  },
  methods: {}
}
</script>

<style scoped lang="less">
.bg {
  position: relative;
  width: 375px;
  height: 200px;
  // background-color: brown;
  img {
    width: 100%;
  }
  .weizhi {
    position: absolute;
    top: -15px;
    left: 40px;
    .big {
      position: relative;
      margin: 0 auto;
      margin-top: 150px;
      box-shadow: 0 0 15px rgba(156, 150, 150, 0.5);
      background-color: white;
      width: 300px;
      height: 130px;
      text-align: center;
      padding-top: 30px;
      .small {
        position: absolute;
        top: -28px;
        left: 120px;
        width: 60px;
        height: 60px;
        background-color: #f3f5f2;
        border-radius: 50%;
        img {
          margin-top: 5px;
          width: 80%;
          height: 80%;
        }
      }
      .van-button {
        border-radius: 5px;
        height: 35px;
        background-color: #1eb879;
      }
    }
  }
}
.van-grid{
  margin-top: 120px;
  border: #fff;
}
.img{
  width: 340px;
  height: 100px;
  margin:10px  auto;
  img{
    width: 100%;
  }
}
</style>
